package fit.deni.pages;

import org.apache.tapestry5.annotations.SessionState;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Zaposleni;

public class Index {

	@SessionState
	private Zaposleni korisnik;
	private boolean korisnikExists;

	@CommitAfter
	public Object onActivate() {
		if(!korisnikExists) return Login.class;
		return null;
	}
}
